#!/bin/bash

checkAndInstall(){
    if [ -z "$1" ];then
        return
    fi
    
    if ! which "$1" ;then
        apt install "$1" -y
    fi
}

apt update

checkAndInstall borgbackup
checkAndInstall rsync
checkAndInstall iptables
checkAndInstall curl
checkAndInstall wget


